// ProbPltPara.h : header file
//

#ifndef __PROBPLTPARA_H__
#define __PROBPLTPARA_H__

/////////////////////////////////////////////////////////////////////////////
// CProbPltPara dialog
#include "amsEdit.h"
#include "XMLDialog.h"
#include "GeoStat.h"
#include "GsStru.h"
#include "StatGraph.h"
#include "afxwin.h"
class CDataTable;
class C2DBaseView;
class CdmDBBase;

class CProbPltPara : public CXMLDialog
{
public:
	CGeoStatGraph* m_StatGraphObj;
	GsDiscPnt* m_DiscPnts;

// Construction
public:
	CProbPltPara(CWnd* pParent = NULL);
	~CProbPltPara();

// Dialog Data
	//{{AFX_DATA(CProbPltPara)
	enum { IDD = IDD_PROBPLOT1 };
	CAMSNumericEdit	m_edInc;
	CAMSNumericEdit	m_edNpts;
	CAMSNumericEdit	m_edPmax;
	CAMSNumericEdit	m_edPmin;
	CAMSNumericEdit	m_edTmax;
	CAMSNumericEdit	m_edTmin;
	CEdit	m_eddatafile;
	CBCGPComboBox	m_cbIlog;
	CBCGPComboBox	m_cbIvr;
	CString	m_datafl;
	CString	m_title;
	int		m_nVar;
	//}}AFX_DATA
	long	m_npts;
	float	m_inc;
	float	m_max;
	float	m_min;
	float	m_tmax;
	float	m_tmin;
	CString	m_ivr;


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CProbPltPara)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL
protected:
	void ReadNode();
	void WriteNode();
	void AllDataSetWindowtext();
	bool IsFilterField(CString fldname);
	void OpenTablefile();
	void ChangePbInputfile();

	void ShowHighDlg(bool bSHow);
	bool m_bShow;
	bool m_bInitDlg;

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CProbPltPara)
	afx_msg void OnOpenfile();
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	afx_msg void OnChangePbIncrement();
	afx_msg void OnChangePbDotno();
	afx_msg void OnChangePbPlotmax();
	afx_msg void OnChangePbPlotmin();
	afx_msg void OnChangePbTmax();
	afx_msg void OnChangePbTmin();
	afx_msg void OnChangePbInputfile();
	afx_msg void OnPbParaManager();
	afx_msg void OnDestroy();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

public:
	CDataTable* m_dataTable;	
	long m_recordnum;
	CdmDBBase *m_pDB;	

	afx_msg void OnBnClickedBtnTop();
	CStatic m_wndStatic;
};


/////////////////////////////////////////////////////////////////////////////
#endif // __PROBPLTPARA_H__
